package com.hl.controller;

import com.hl.domain.ConsultationScreening;
import com.hl.service.TeacherGoodService;
import com.hl.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/teacherGood")
public class TeacherGoodController {

    @Autowired
    private TeacherGoodService teacherGoodService;

    @GetMapping("/search")
    public R searchConsultationScreenings(
            @RequestParam(required = false) String goodName,
            @RequestParam(required = false) String teacherAddress,
            @RequestParam(required = false) String levelName) {
        return R.success(teacherGoodService.selectAlls(goodName, teacherAddress, levelName));




    }

}
